<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QTextFrame.iterator Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTextFrame.iterator Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The iterator class provides an iterator for reading the contents
of a <a href="qtextframe.html">QTextFrame</a>. <a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtextframe-iterator.html#iterator">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtextframe-iterator.html#iterator-2">__init__</a></b> (<i>self</i>, iterator&#160;<i>o</i>)</li><li><div class="fn" />bool <b><a href="qtextframe-iterator.html#atEnd">atEnd</a></b> (<i>self</i>)</li><li><div class="fn" />QTextBlock <b><a href="qtextframe-iterator.html#currentBlock">currentBlock</a></b> (<i>self</i>)</li><li><div class="fn" />QTextFrame <b><a href="qtextframe-iterator.html#currentFrame">currentFrame</a></b> (<i>self</i>)</li><li><div class="fn" />QTextFrame <b><a href="qtextframe-iterator.html#parentFrame">parentFrame</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qtextframe-iterator.html#__eq__">__eq__</a></b> (<i>self</i>, iterator&#160;<i>o</i>)</li><li><div class="fn" />iterator <b><a href="qtextframe-iterator.html#__iadd__">__iadd__</a></b> (<i>self</i>, int)</li><li><div class="fn" />iterator <b><a href="qtextframe-iterator.html#__isub__">__isub__</a></b> (<i>self</i>, int)</li><li><div class="fn" />bool <b><a href="qtextframe-iterator.html#__ne__">__ne__</a></b> (<i>self</i>, iterator&#160;<i>o</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The iterator class provides an iterator for reading the contents
of a <a href="qtextframe.html">QTextFrame</a>.</p>
<p>A frame consists of an arbitrary sequence of <a href="qtextblock.html">QTextBlock</a>s and child <a href="qtextframe.html">QTextFrame</a>s. This class provides a way to
iterate over the child objects of a frame, and read their contents.
It does not provide a way to modify the contents of the frame.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="iterator" />iterator.__init__ (<i>self</i>)</h3><p>Constructs an invalid iterator.</p>


<h3 class="fn"><a name="iterator-2" />iterator.__init__ (<i>self</i>, <a href="qtextframe-iterator.html">iterator</a>&#160;<i>o</i>)</h3><h3 class="fn"><a name="atEnd" />bool iterator.atEnd (<i>self</i>)</h3><p>Returns true if the current item is the last item in the text
frame.</p>


<h3 class="fn"><a name="currentBlock" /><a href="qtextblock.html">QTextBlock</a> iterator.currentBlock (<i>self</i>)</h3><p>Returns the current block the iterator points to. If the
iterator points to a child frame, the returned block is
invalid.</p>
<p><b>See also</b> <a href="qtextframe-iterator.html#currentFrame">currentFrame</a>().</p>


<h3 class="fn"><a name="currentFrame" /><a href="qtextframe.html">QTextFrame</a> iterator.currentFrame (<i>self</i>)</h3><p>Returns the current frame pointed to by the iterator, or 0 if
the iterator currently points to a block.</p>
<p><b>See also</b> <a href="qtextframe-iterator.html#currentBlock">currentBlock</a>().</p>


<h3 class="fn"><a name="parentFrame" /><a href="qtextframe.html">QTextFrame</a> iterator.parentFrame (<i>self</i>)</h3><p>Returns the parent frame of the current frame.</p>
<p><b>See also</b> <a href="qtextframe-iterator.html#currentFrame">currentFrame</a>() and
<a href="qtextframe.html#parentFrame">QTextFrame.parentFrame</a>().</p>


<h3 class="fn"><a name="__eq__" />bool iterator.__eq__ (<i>self</i>, <a href="qtextframe-iterator.html">iterator</a>&#160;<i>o</i>)</h3><h3 class="fn"><a name="__iadd__" /><a href="qtextframe-iterator.html">iterator</a> iterator.__iadd__ (<i>self</i>, int)</h3><h3 class="fn"><a name="__isub__" /><a href="qtextframe-iterator.html">iterator</a> iterator.__isub__ (<i>self</i>, int)</h3><h3 class="fn"><a name="__ne__" />bool iterator.__ne__ (<i>self</i>, <a href="qtextframe-iterator.html">iterator</a>&#160;<i>o</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.9.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt&#160;4.8.0</td></tr></table></div></address></body></html>